package com.service;

import com.dao.NurseContentDao;
import com.pojo.NurseContent;

import java.util.List;

public class NurseContentService {
    private NurseContentDao nurseContentDao = new NurseContentDao();
    public int addNurseContent(NurseContent content) {
        return nurseContentDao.addNurseContent(content);
    }

    public List<NurseContent> searchAll() {
        return nurseContentDao.searchAll();
    }

    public int updateNurseContent(NurseContent content) {
        return nurseContentDao.updateNurseContent(content);
    }

    public void deleteNurseContent(int id) {
        nurseContentDao.deleteNurseContent(id);
    }
}
